package il.ac.technion.wiki.impl;

import il.ac.technion.wiki.api.IContentImporter;
import il.ac.technion.wiki.api.IWikiEngineFactory;
import il.ac.technion.wiki.impl.storage.SimpleDataStorage;

public class WikiEngineFactory implements IWikiEngineFactory{

	@Override
	public WikiEngine getWikiEngine() {
		SimpleDataStorage ds = new SimpleDataStorage();
		IContentImporter[] ci = {new WikiImporter()};
		WikiEngine wiki = new WikiEngine(ds, ci, new WikiRanker());
		ds.setContentClass(WikiEngine.WikiContent.class);
		String[] words = {"the", "and", "is", ".", ",", "?", "!", "(", ")", "\"", "\'", "-", ":"}; 
		ds.setNeutralWords(words);
		return wiki;
	}

}
